import { Component } from 'react'
import './Search.scss'

class Search extends Component {
  componentDidMount() {
    this.refs.input.focus()
  }
  render() {
    return (
      <div className="search">
        <input type="text" ref="input" />
        {/* icon */}
        <i className="iconfont icon-xiangji"> </i>
        {/* 百度一下 */}
        <div> 百度一下 </div>
      </div>
    )
  }
}

export default Search
